<?php
/* @var $this SiteController */
/* @var $model LoginForm */
/* @var $form CActiveForm  */

$this->pageTitle=Yii::app()->name . ' - Thay đổi mật khẩu';
$this->breadcrumbs=array(
	'Thay đổi mật khẩu',
);
?>

<h1>Thay đổi mật khẩu</h1>


<div class="form">
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'login-form',
	'enableClientValidation'=>true,
	'clientOptions'=>array(
		'validateOnSubmit'=>true,
	),
)); ?>

	<div class="row">
		<span>Tên đăng nhập: <?php echo Yii::app()->user->getId()->UserName; ?></span>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'oldpass'); ?>
		<?php echo $form->passwordField($model,'oldpass'); ?>
		<?php echo $form->error($model,'oldpass'); ?>
	</div>
	
	<div class="row">
		<?php echo $form->labelEx($model,'password'); ?>
		<?php echo $form->passwordField($model,'password'); ?>
		<?php echo $form->error($model,'password'); ?>
	</div>
	
	<div class="row">
		<?php echo $form->labelEx($model,'confirm'); ?>
		<?php echo $form->passwordField($model,'confirm'); ?>
		<?php echo $form->error($model,'confirm'); ?>
	</div>
	
<p class="note">Thông tin bắt buộc <span class="required">*</span></p>

	<div class="row buttons">
		<?php echo CHtml::submitButton('Thay đổi'); ?>
	</div>

<?php $this->endWidget(); ?>
</div><!-- form -->
